package Demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-06-09
 * Time: 20:49
 */
public class Test {
    public static void fun(Inshape inshape){
        inshape.eat();
    }
    public static void main(String[] args) {
        fun(new Cat());
        fun(new Dog());
    }
}
